package com.esyoga.yoyoga.pojo;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Component
public class TGymExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TGymExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGIdIsNull() {
            addCriterion("g_id is null");
            return (Criteria) this;
        }

        public Criteria andGIdIsNotNull() {
            addCriterion("g_id is not null");
            return (Criteria) this;
        }

        public Criteria andGIdEqualTo(Integer value) {
            addCriterion("g_id =", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotEqualTo(Integer value) {
            addCriterion("g_id <>", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThan(Integer value) {
            addCriterion("g_id >", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("g_id >=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThan(Integer value) {
            addCriterion("g_id <", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThanOrEqualTo(Integer value) {
            addCriterion("g_id <=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdIn(List<Integer> values) {
            addCriterion("g_id in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotIn(List<Integer> values) {
            addCriterion("g_id not in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdBetween(Integer value1, Integer value2) {
            addCriterion("g_id between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotBetween(Integer value1, Integer value2) {
            addCriterion("g_id not between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andGAccountIsNull() {
            addCriterion("g_account is null");
            return (Criteria) this;
        }

        public Criteria andGAccountIsNotNull() {
            addCriterion("g_account is not null");
            return (Criteria) this;
        }

        public Criteria andGAccountEqualTo(String value) {
            addCriterion("g_account =", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountNotEqualTo(String value) {
            addCriterion("g_account <>", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountGreaterThan(String value) {
            addCriterion("g_account >", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountGreaterThanOrEqualTo(String value) {
            addCriterion("g_account >=", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountLessThan(String value) {
            addCriterion("g_account <", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountLessThanOrEqualTo(String value) {
            addCriterion("g_account <=", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountLike(String value) {
            addCriterion("g_account like", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountNotLike(String value) {
            addCriterion("g_account not like", value, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountIn(List<String> values) {
            addCriterion("g_account in", values, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountNotIn(List<String> values) {
            addCriterion("g_account not in", values, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountBetween(String value1, String value2) {
            addCriterion("g_account between", value1, value2, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGAccountNotBetween(String value1, String value2) {
            addCriterion("g_account not between", value1, value2, "gAccount");
            return (Criteria) this;
        }

        public Criteria andGPasswordIsNull() {
            addCriterion("g_password is null");
            return (Criteria) this;
        }

        public Criteria andGPasswordIsNotNull() {
            addCriterion("g_password is not null");
            return (Criteria) this;
        }

        public Criteria andGPasswordEqualTo(String value) {
            addCriterion("g_password =", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordNotEqualTo(String value) {
            addCriterion("g_password <>", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordGreaterThan(String value) {
            addCriterion("g_password >", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("g_password >=", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordLessThan(String value) {
            addCriterion("g_password <", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordLessThanOrEqualTo(String value) {
            addCriterion("g_password <=", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordLike(String value) {
            addCriterion("g_password like", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordNotLike(String value) {
            addCriterion("g_password not like", value, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordIn(List<String> values) {
            addCriterion("g_password in", values, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordNotIn(List<String> values) {
            addCriterion("g_password not in", values, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordBetween(String value1, String value2) {
            addCriterion("g_password between", value1, value2, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGPasswordNotBetween(String value1, String value2) {
            addCriterion("g_password not between", value1, value2, "gPassword");
            return (Criteria) this;
        }

        public Criteria andGNameIsNull() {
            addCriterion("g_name is null");
            return (Criteria) this;
        }

        public Criteria andGNameIsNotNull() {
            addCriterion("g_name is not null");
            return (Criteria) this;
        }

        public Criteria andGNameEqualTo(String value) {
            addCriterion("g_name =", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotEqualTo(String value) {
            addCriterion("g_name <>", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameGreaterThan(String value) {
            addCriterion("g_name >", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameGreaterThanOrEqualTo(String value) {
            addCriterion("g_name >=", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameLessThan(String value) {
            addCriterion("g_name <", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameLessThanOrEqualTo(String value) {
            addCriterion("g_name <=", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameLike(String value) {
            addCriterion("g_name like", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotLike(String value) {
            addCriterion("g_name not like", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameIn(List<String> values) {
            addCriterion("g_name in", values, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotIn(List<String> values) {
            addCriterion("g_name not in", values, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameBetween(String value1, String value2) {
            addCriterion("g_name between", value1, value2, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotBetween(String value1, String value2) {
            addCriterion("g_name not between", value1, value2, "gName");
            return (Criteria) this;
        }

        public Criteria andGIntroductionIsNull() {
            addCriterion("g_introduction is null");
            return (Criteria) this;
        }

        public Criteria andGIntroductionIsNotNull() {
            addCriterion("g_introduction is not null");
            return (Criteria) this;
        }

        public Criteria andGIntroductionEqualTo(String value) {
            addCriterion("g_introduction =", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionNotEqualTo(String value) {
            addCriterion("g_introduction <>", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionGreaterThan(String value) {
            addCriterion("g_introduction >", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionGreaterThanOrEqualTo(String value) {
            addCriterion("g_introduction >=", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionLessThan(String value) {
            addCriterion("g_introduction <", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionLessThanOrEqualTo(String value) {
            addCriterion("g_introduction <=", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionLike(String value) {
            addCriterion("g_introduction like", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionNotLike(String value) {
            addCriterion("g_introduction not like", value, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionIn(List<String> values) {
            addCriterion("g_introduction in", values, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionNotIn(List<String> values) {
            addCriterion("g_introduction not in", values, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionBetween(String value1, String value2) {
            addCriterion("g_introduction between", value1, value2, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGIntroductionNotBetween(String value1, String value2) {
            addCriterion("g_introduction not between", value1, value2, "gIntroduction");
            return (Criteria) this;
        }

        public Criteria andGImageIsNull() {
            addCriterion("g_image is null");
            return (Criteria) this;
        }

        public Criteria andGImageIsNotNull() {
            addCriterion("g_image is not null");
            return (Criteria) this;
        }

        public Criteria andGImageEqualTo(String value) {
            addCriterion("g_image =", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageNotEqualTo(String value) {
            addCriterion("g_image <>", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageGreaterThan(String value) {
            addCriterion("g_image >", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageGreaterThanOrEqualTo(String value) {
            addCriterion("g_image >=", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageLessThan(String value) {
            addCriterion("g_image <", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageLessThanOrEqualTo(String value) {
            addCriterion("g_image <=", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageLike(String value) {
            addCriterion("g_image like", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageNotLike(String value) {
            addCriterion("g_image not like", value, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageIn(List<String> values) {
            addCriterion("g_image in", values, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageNotIn(List<String> values) {
            addCriterion("g_image not in", values, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageBetween(String value1, String value2) {
            addCriterion("g_image between", value1, value2, "gImage");
            return (Criteria) this;
        }

        public Criteria andGImageNotBetween(String value1, String value2) {
            addCriterion("g_image not between", value1, value2, "gImage");
            return (Criteria) this;
        }

        public Criteria andGLatlngIsNull() {
            addCriterion("g_latlng is null");
            return (Criteria) this;
        }

        public Criteria andGLatlngIsNotNull() {
            addCriterion("g_latlng is not null");
            return (Criteria) this;
        }

        public Criteria andGLatlngEqualTo(String value) {
            addCriterion("g_latlng =", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngNotEqualTo(String value) {
            addCriterion("g_latlng <>", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngGreaterThan(String value) {
            addCriterion("g_latlng >", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngGreaterThanOrEqualTo(String value) {
            addCriterion("g_latlng >=", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngLessThan(String value) {
            addCriterion("g_latlng <", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngLessThanOrEqualTo(String value) {
            addCriterion("g_latlng <=", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngLike(String value) {
            addCriterion("g_latlng like", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngNotLike(String value) {
            addCriterion("g_latlng not like", value, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngIn(List<String> values) {
            addCriterion("g_latlng in", values, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngNotIn(List<String> values) {
            addCriterion("g_latlng not in", values, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngBetween(String value1, String value2) {
            addCriterion("g_latlng between", value1, value2, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGLatlngNotBetween(String value1, String value2) {
            addCriterion("g_latlng not between", value1, value2, "gLatlng");
            return (Criteria) this;
        }

        public Criteria andGAddressIsNull() {
            addCriterion("g_address is null");
            return (Criteria) this;
        }

        public Criteria andGAddressIsNotNull() {
            addCriterion("g_address is not null");
            return (Criteria) this;
        }

        public Criteria andGAddressEqualTo(String value) {
            addCriterion("g_address =", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressNotEqualTo(String value) {
            addCriterion("g_address <>", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressGreaterThan(String value) {
            addCriterion("g_address >", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressGreaterThanOrEqualTo(String value) {
            addCriterion("g_address >=", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressLessThan(String value) {
            addCriterion("g_address <", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressLessThanOrEqualTo(String value) {
            addCriterion("g_address <=", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressLike(String value) {
            addCriterion("g_address like", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressNotLike(String value) {
            addCriterion("g_address not like", value, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressIn(List<String> values) {
            addCriterion("g_address in", values, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressNotIn(List<String> values) {
            addCriterion("g_address not in", values, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressBetween(String value1, String value2) {
            addCriterion("g_address between", value1, value2, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGAddressNotBetween(String value1, String value2) {
            addCriterion("g_address not between", value1, value2, "gAddress");
            return (Criteria) this;
        }

        public Criteria andGBanlanceIsNull() {
            addCriterion("g_banlance is null");
            return (Criteria) this;
        }

        public Criteria andGBanlanceIsNotNull() {
            addCriterion("g_banlance is not null");
            return (Criteria) this;
        }

        public Criteria andGBanlanceEqualTo(BigDecimal value) {
            addCriterion("g_banlance =", value, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceNotEqualTo(BigDecimal value) {
            addCriterion("g_banlance <>", value, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceGreaterThan(BigDecimal value) {
            addCriterion("g_banlance >", value, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("g_banlance >=", value, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceLessThan(BigDecimal value) {
            addCriterion("g_banlance <", value, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("g_banlance <=", value, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceIn(List<BigDecimal> values) {
            addCriterion("g_banlance in", values, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceNotIn(List<BigDecimal> values) {
            addCriterion("g_banlance not in", values, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("g_banlance between", value1, value2, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGBanlanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("g_banlance not between", value1, value2, "gBanlance");
            return (Criteria) this;
        }

        public Criteria andGStateIsNull() {
            addCriterion("g_state is null");
            return (Criteria) this;
        }

        public Criteria andGStateIsNotNull() {
            addCriterion("g_state is not null");
            return (Criteria) this;
        }

        public Criteria andGStateEqualTo(Integer value) {
            addCriterion("g_state =", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateNotEqualTo(Integer value) {
            addCriterion("g_state <>", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateGreaterThan(Integer value) {
            addCriterion("g_state >", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("g_state >=", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateLessThan(Integer value) {
            addCriterion("g_state <", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateLessThanOrEqualTo(Integer value) {
            addCriterion("g_state <=", value, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateIn(List<Integer> values) {
            addCriterion("g_state in", values, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateNotIn(List<Integer> values) {
            addCriterion("g_state not in", values, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateBetween(Integer value1, Integer value2) {
            addCriterion("g_state between", value1, value2, "gState");
            return (Criteria) this;
        }

        public Criteria andGStateNotBetween(Integer value1, Integer value2) {
            addCriterion("g_state not between", value1, value2, "gState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}